package com.xin.entity.shop;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 店铺审核日志
 */
@TableName("t_org_shop_operate_log")
public class ShopOperateLogEntity {

    private Long id;

    @NotNull(message = "店铺id不可以为空")
    private Long shopId;

    @NotNull(message = "审核类型不可以为空")
    private Integer operateType;

    /**
     * 操作人
     */
    private Long operateId;

    @TableField(exist = false)
    private String operateName;

    /**
     * 审核时间
     */
    private Date operateTime;

    @TableField("note")
    private String note;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    public Integer getOperateType() {
        return operateType;
    }

    public void setOperateType(Integer operateType) {
        this.operateType = operateType;
    }

    public Long getOperateId() {
        return operateId;
    }

    public void setOperateId(Long operateId) {
        this.operateId = operateId;
    }

    public Date getOperateTime() {
        return operateTime;
    }

    public void setOperateTime(Date operateTime) {
        this.operateTime = operateTime;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public String getOperateName() {
        return operateName;
    }

    public void setOperateName(String operateName) {
        this.operateName = operateName;
    }

    @Override
    public String toString() {
        return "ShopOperateLogEntity{" +
                "id=" + id +
                ", shopId=" + shopId +
                ", operateType=" + operateType +
                ", operateId=" + operateId +
                ", operateName='" + operateName + '\'' +
                ", operateTime=" + operateTime +
                ", note='" + note + '\'' +
                '}';
    }
}
